<!DOCTYPE html>
<html>
<head>
    <title>用户资源管理</title>
    <#include "/common/import.ftl" >
    <script>
        var userId = "${userId!''}";
        //标记是否重新刷新
        var reload = "T";
        $(function () {
            $('#tab-user-right').tabs({
                onSelect: function () {
                    openTab();
                }
            });
        });

        function openTab() {
            var tab = $('#tab-user-right').tabs('getSelected');
            var tbId = tab.attr("id");
            var url = '${ctx}/uct/core/user-act-page.action';
            //获取tab的iframe对象
            var tbIframe = $("#" + tbId + " iframe:first-child");
            if (reload == "T") {
                tbIframe.attr("src", url + '?userId=' + userId + '&gotoPage=' + tbId);
            } else {
                if (tbIframe.attr("src") == "") {
                    tbIframe.attr("src", url + '?userId=' + userId + '&gotoPage=' + tbId);
                }
            }
        }

    </script>
</head>

<body>
<div id="tab-user-right">
    <div title="拥有的角色" id="user-role">
        <iframe scrolling="yes" frameborder="0" height="500" width="100%" frameborder="0"></iframe>
    </div>

    <div title="继承自角色的资源" id="user-right-role">
        <iframe scrolling="yes" frameborder="0" height="500" width="100%" frameborder="0"></iframe>
    </div>
    <!-- div title="直接分配的操作权限" id="user-right-act">
        <iframe scrolling="yes" frameborder="0" height="500" width="100%"  frameborder="0" ></iframe>
    </div>
    <div title="全部操作权限" id="user-right-all">
        <iframe scrolling="yes" frameborder="0" height="500" width="100%"  frameborder="0" ></iframe>
    </div -->
    <div title="数据权限-机构" id="user-right-org">
        <iframe scrolling="yes" frameborder="0" height="500" width="100%" frameborder="0"></iframe>
    </div>
    <div title="数据权限-部门" id="user-right-dept">
        <iframe scrolling="yes" frameborder="0" height="500" width="100%" frameborder="0"></iframe>
    </div>
</div>

</body>
</html>